FROM ubuntu
MAINTAINER Author:mayong_82@126.com
RUN apt update && apt install python3 python3-pip -y && pip3 install shadowsocks
##解决启动报错问题
RUN sed -i 's/EVP_CIPHER_CTX_cleanup/EVP_CIPHER_CTX_reset/g' /usr/local/lib/python3.8/dist-packages/shadowsocks/crypto/openssl.py
COPY shadowsocks.json /etc/shadowsocks.json
RUN mkdir /logs
EXPOSE 8443
CMD  ssserver -qq -c /etc/shadowsocks.json > /logs/ssserver.log

